#coding=utf-8
import _prepare

from services.subscribe import api
if __name__=='__main__':
    #feed_id = api.sync_create_subscribe(creator=1,keywords=['mamamiya','喝多了','断片了','aaa','哎呦','more than one'])
    #print feed_id
    #api.sync_update_subscibe(creator=1,keywords=['一个蛋','2个蛋','3hklasfh'],subscibe_id=1)
    #print sql.create_subcibe_sql()
    #obj = api.get_subscribe_by_user(10)
    objs = api.sync_get_subscribe(9)
    for n in objs:
        print n['title'],n

